if SERVER then
	registerCommand("mute", "Mutes the player you specify's chat text", function(param)
		local muteOn = "caller muted target"
		local muteOff = "caller unmuted target"
		if param["settings"]["mute_msg_on"] then
			muteOn = param["settings"]["mute_msg_on"]
		end
		if param["settings"]["mute_msg_off"] then
			muteOff = param["settings"]["mute_msg_off"]
		end
		local muteTable = {}
		muteTable["caller"] = getCaller(param[1])
		local targs = string.Explode(" ", param[3])
		for i, targ in pairs(targs) do
			local plyTarg = getPlayerByName(targ)
			if plyTarg then
				muteTable["target"] = plyTarg:GetName()
				if (not plyTarg["moocow_mute"]) || plyTarg["moocow_mute"] == -1 then
					plyTarg["moocow_mute"] = 1
					display(param[1], "mute", { plyTarg } , parseDisplayMessage(muteOn, muteTable))
				else
					plyTarg["moocow_mute"] = -1
					display(param[1], "mute", { plyTarg } , parseDisplayMessage(muteOff, muteTable))
				end
			end
		end
	end)
	
	registerTextMod("mute", function(ply, text, toall)
		if ply["moocow_mute"] == 1 then
			return ""
		else
			return text
		end
	end)
end